package com.mate.cloud.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mate.cloud.auth.domain.UmsResource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 后台用户与角色管理自定义
 * @author:         MI
 * @email:          448341911@qq.com
 * @createTime:     2024/6/15 18:49
 * @updateUser:     MI
 * @updateTime:     2024/6/15 18:49
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
@Mapper
public interface UmsAdminRoleMapper extends BaseMapper<UmsResource> {

    /**
     * 获取用户所有可访问资源
     */
    List<UmsResource> getResourceList(@Param("adminId") Integer adminId);
}
